<extend name="./Common/View/EasyUI/datagrid.html"/>

<block name="search">
    <table class="search-table table-condensed">
        <tr>
            <td>用户名/姓名</td>
            <td><input type="text" name="keyword" class="span2 input-text"></td>
            <td><a href="javascript:void(0);" id="btn_search" class="easyui-linkbutton"
                   data-options="plain:true,iconCls:'icon-search'">搜索</a>
                <a href="javascript:void(0);" id="btn_clear" class="easyui-linkbutton"
                   data-options="plain:true,iconCls:'icon-remove'">清空</a>
            </td>
        </tr>
    </table>
</block>

<block name="toolbar">
    <a onclick="curd.export()" href="javascript:void(0);" class="easyui-linkbutton"
       data-options="plain:true,iconCls:'icon-download'">导出</a>
    <a onclick="curd.reload();" href="javascript:void(0);" class="easyui-linkbutton"
       data-options="plain:true,iconCls:'icon-refresh'">刷新</a>
</block>

<block name="columns">
    <thead data-options="frozen:true">
    <tr>
        <th data-options="field:'account',width:150,sortable:true">账号</th>
        <th data-options="field:'nickname',width:150">昵称</th>
        <th data-options="field:'departName',width:150">所在部门</th>
    </tr>
    </thead>
    <thead>
    <tr>
        <th data-options="field:'mobile',width:120">手机</th>
        <th data-options="field:'email',width:150">邮箱</th>
        <th data-options="field:'status',width:50,formatter:format_status">状态</th>
        <th data-options="field:'last_time',width:160">最后登录时间</th>
        <th data-options="field:'last_ip',width:150">最后登录IP</th>
    </tr>
    </thead>
</block>


<block name="script">
    <script>
        curd.exportUrl = '__URL__/export';
        gridOption.url = app.api + 'Sys/User/lists';
    </script>
</block>